<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@page import="com.zhangyj.entitis.Dingdan"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.zhangyj.entitis.Xiaoshou"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="com.zhangyj.util.Tools"%><html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
xmlns="http://www.w3.org/TR/REC-html40">
<%
Dingdan dd = (Dingdan) request.getAttribute("dd");
%>
<head>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="格式12.1.files/filelist.xml">
<title> new document </title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>bjlgc</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>bjlgc</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>2</o:TotalTime>
  <o:Created>2009-12-01T07:32:00Z</o:Created>
  <o:LastSaved>2009-12-01T07:36:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>93</o:Words>
  <o:Characters>533</o:Characters>
  <o:Lines>4</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>625</o:CharactersWithSpaces>
  <o:Version>11.5606</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>150</w:Zoom>
  <w:GrammarState>Clean</w:GrammarState>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]--><!--[if !mso]><object
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:宋体;
	mso-bidi-font-family:宋体;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:42.55pt;
	mso-footer-margin:49.6pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:普通表格;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
<meta name=keywords content="">
<meta name=description content="">
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN style='tab-interval:21.0pt'>

<div class=Section1>

<table class=MsoNormalTable border=0 cellspacing=1 cellpadding=0 width="100%"
 style='width:100.0%;mso-cellspacing:.7pt;background:#AAAAAA;mso-padding-alt:
 3.75pt 3.75pt 3.75pt 3.75pt'>
 <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>订单编号：<span lang=EN-US><%=dd.getDdbh() %><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>制单时间：<span lang=EN-US><%=dd.getKdsj() %></span><o:p></o:p></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>制单人：<span class=GramE><%=dd.getZdr() %></span><span
  lang=EN-US><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:1'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>会员姓名：<%=dd.getHyxm() %><o:p></o:p></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>会员编号：<span lang=EN-US><%=dd.getHybh() %><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>媒体来源：...<span lang=EN-US><o:p></o:p></span></span></p>
  </td>
 </tr>
 
 <tr style='mso-yfti-irow:3'>
  <td  style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>会员级别：<%=Tools.builderSelect(new String[][]{{"0","普通会员"},{"1","VIP会员"}},"hyjb",dd.getHyjb(),true) %><span
  lang=EN-US><o:p></o:p></span></span></p>
  </td>
   <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>会员电话：<span lang=EN-US><%=dd.getShdh() %><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>送货邮编：<span lang=EN-US><%=dd.getShyb() %><o:p></o:p></span></span></p>
  </td>
 </tr>
 
 <tr style='mso-yfti-irow:4'>
  <td colspan=3 style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>送货地址：<%=dd.getShdz() %><span
  lang=EN-US><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:5'>
  <td colspan=3 style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
   style='width:100.0%;mso-cellspacing:0cm;mso-padding-alt:3.0pt 3.0pt 3.0pt 3.0pt'>
   <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>产品名称<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>价格类型<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>价格<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>数量<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>赠送积分<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>格调金币<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>合计<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
   </tr>
   <%
   BigDecimal zje = BigDecimal.ZERO;
   List<?> list = dd.getProductList();
   if (list != null) {
	   for (Iterator iter = list.iterator();iter.hasNext();) {
		   Xiaoshou xs = (Xiaoshou) iter.next();
		   zje = zje.add(xs.getSpdj().multiply(new BigDecimal(xs.getSpsl())));
   %>
   <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'><%=xs.getSpmc() %><span lang=EN-US><o:p></o:p></span></span></p>
 
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span style='font-size:9.0pt'>代购价<span lang=EN-US><o:p></o:p></span></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'><%=xs.getSpdj() %><o:p></o:p></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'><%=xs.getSpsl() %><o:p></o:p></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'><%=xs.getSpdj().multiply(new BigDecimal(xs.getSpsl())) %><o:p></o:p></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'>0<o:p></o:p></span></p>
    </td>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'><%=xs.getSpdj().multiply(new BigDecimal(xs.getSpsl())) %><o:p></o:p></span></p>
    </td>
   </tr>
   <%
}
}
%>
  </table>
  <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'><o:p></o:p></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:6;mso-yfti-lastrow:yes'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span class=GramE><span style='font-size:9.0pt'>本单总金额</span></span><span
  style='font-size:9.0pt'>：<span lang=EN-US><%=dd.getZje() %> </span><span class=GramE>本单所需积分</span>：<span
  lang=EN-US><%=dd.getSxjf() %><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>获赠总积分：<span lang=EN-US>
  <%if (dd.getZflx() == 0) { %>
  <%=dd.getZje() %>
  <%} %>
   </span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span class=GramE><span style='font-size:9.0pt'>本单总积分</span></span><span
  style='font-size:9.0pt'>：<span lang=EN-US><%=dd.getSxjf() %><o:p></o:p></span></span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt'><br>
</span><span style='font-size:9.0pt'>订单备注： <span lang=EN-US><o:p></o:p></span></span></p>

<table class=MsoNormalTable border=0 cellspacing=1 cellpadding=0 width="100%"
 style='width:100.0%;mso-cellspacing:.7pt;background:#AAAAAA;mso-padding-alt:
 3.75pt 3.75pt 3.75pt 3.75pt'>
 <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>产品总额：<span lang=EN-US> <%=zje %>
  </span>配送费用：<span lang=EN-US>0.0<o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>本单应收：<span lang=EN-US><%=zje %></span>本单实收：<span
  lang=EN-US><%=dd.getZje() %><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:1'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>使用余额：<span lang=EN-US><%=dd.getZje() %><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>本<span class=GramE>单执行</span>后客户余款金额：<span
  lang=EN-US><%=dd.getZhye()%><o:p></o:p></span></span></p>
  </td>
 </tr>

 <tr style='mso-yfti-irow:3'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>使用积分：<span lang=EN-US><%=dd.getSxjf() %> <o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>本<span class=GramE>单执行</span>后客户剩余积分：<span
  lang=EN-US>--<o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:4'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>付款方式：<%=Tools.builderSelect(new String[][]{{"0","余额支付"},{"1","积分支付"}},"zflx",dd.getZflx()+"",true) %> <span lang=EN-US><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>订单状态：<%=Dingdan.ZFBSLABEL[dd.getZfbs()]%><span lang=EN-US><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:5'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>审核人员：<span class=GramE><%=dd.getShry() %></span>
  <span lang=EN-US><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>审核时间：<span lang=EN-US><%=dd.getShsj() %><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:6'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>开单人员：<%=dd.getKdry() %>
  <span lang=EN-US><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>开单时间：<span lang=EN-US><%=dd.getKdsj() %><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:7'>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>配送人员：<span class=GramE><%=dd.getFhy() %></span>
  <span lang=EN-US><o:p></o:p></span></span></p>
  </td>
  <td style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>配送时间：<span lang=EN-US><%=dd.getFhsj() %><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:8'>
  <td colspan=2 style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>订单描述：<span lang=EN-US><%=dd.getDdbz() %><o:p></o:p></span></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:9;mso-yfti-lastrow:yes'>
  <td colspan=2 style='background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt'>
  <p class=MsoNormal><span style='font-size:9.0pt'>服务热线：<span lang=EN-US><o:p></o:p></span></span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>
